Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix profileBuilder #13467

Closed
wants to merge 3 commits into from
Closed

Conversation

ArcturusZhang
Copy link
Member

@ArcturusZhang ArcturusZhang commented Nov 10, 2020

it turns out after applying Azure/autorest.go#520, the profileBuilder might not work (check the results here).
The tool will not automatically import the new uuid package, and therefore compile errors occur.

This PR fix the profileBuilder to let it scan the import statement and add them to the generated file when necessary.

@jhendrixMSFT
Copy link
Member

What exactly is broken without this fix? I looked at the linked PR, the only failure I see is the "broken link detection" which looks unrelated.

@ArcturusZhang
Copy link
Member Author

What exactly is broken without this fix? I looked at the linked PR, the only failure I see is the "broken link detection" which looks unrelated.

I am not quite sure why this happens, but previously we rely on the programmatically invoked goimports to complete the import, such like the uuid package. But after we have switched the uuid to github.com/gofrs/uuid, it does not work anymore. Hence, it would not automatically import the github.com/gofrs/uuid package (in those are using uuid). I am not quite sure if this is related with the fact that the old uuid package always has an alias, ie, uuid "github.com/satori/go.uuid". Do you have any clue of this?

@ArcturusZhang ArcturusZhang deleted the fix-profile-builder branch May 11, 2021 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants